﻿@model IEnumerable<CmsMedia>
           
@{
    Layout = "~/Templates/BaseAdminTemplate.cshtml";
    ResFile = "cms_Media";
}

@{
    ViewBag.Title = _("Media");
}

<h1 class="g-clear">
	<i class="b-icon b-icon_h b-icon_h_media"></i>
	<span class="b-overflow">
	@_("Media")
	<span class="b-intro-text">@_("The following folders contain assets available to your website.")<br />
    @_("Each media item can contain one or several files. For example, In the case of several files these can be a video-file and a thumbnail image for that video.")</span>
	</span>  
</h1>

<div class="b-buttons">
    <a class="b-button b-button_save" href="@Url.Action("add", "cmsmediacontent")">@_("Upload new item")</a>
    <a class="b-button" href="@Url.Action("add", "cmsmedia")">@_("Create New Folder")</a>
</div>
 <div class="b-form b-form_filter">
     <form method="GET">

         <ol class="b-form__rows ul-reset float-left">
             <li class="b-form__row g-clear">			
                 @Html.DropDownList("orderBy", ViewBag.OrderBySelectList as SelectList)
                 @Html.DropDownList("filterType", ViewBag.FilterTypeSelectList as SelectList)
                 <input type="submit" value="@_("Apply")" class="b-button b-button_small b-button_colour_grey" />
             </li>
         </ol>
     </form>
     <form action="@Url.Action("Get", "CmsMedia")" method="GET">
	    <ol class="b-form__rows ul-reset float-right">
		    <li class="b-form__row g-clear">
                <input type="text" name="searchQuery" placeholder="@_(CmsAdminSearchSnippetModel.EntryText)" class="text" />
                <input type="submit" value="@_("Search Media")" class="b-button b-button_small b-button_colour_grey" />
		    </li>
	    </ol>
    </form>
</div>



@Html.Partial("MediaFolders", Model)